import requests as req

def getHtml(url,saveUrl):
    headers={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'}
    res=req.get(url,headers=headers)
    res.encoding="UTF-8"
    saveFile=open(saveUrl,"w",encoding="UTF-8")
    saveFile.write(res.text)
    saveFile.close()

def main():
    getHtml("https://www.pxc.jx.cn/",'D://萍乡学院.html')

main()